#ifndef CSQLITE_H
#define CSQLITE_H
#include <QtSql>



class CSqlite
{
public:
    CSqlite(QString dbname,QString tbname);

    bool doquery(QString sql);
    bool addRecord(int id,QString name,QString gender);
    bool addRecord(QMap<QString,QString>);
    QJsonArray getRows(QString strCondition = QString());


private:
    QSqlDatabase m_db;
    QString m_dbname,m_tbname;
};

#endif // CSQLITE_H
